package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户订单地址表
 */
@ApiModel(description="用户订单地址表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order_recipient")
public class OrderRecipient {
    /**
     * 用户订单地址表PK
     */
    @TableId(value = "id")
    @ApiModelProperty(value="用户订单地址表PK")
    private String id;

    /**
     * 用户表PK
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户表PK")
    private String userId;

    /**
     * 订单表PK
     */
    @TableField(value = "order_id")
    @ApiModelProperty(value="订单表PK")
    private String orderId;

    /**
     * 订单人姓名
     */
    @TableField(value = "rec_name")
    @ApiModelProperty(value="订单人姓名")
    private String recName;

    /**
     * 订单人手机
     */
    @TableField(value = "rec_mobile")
    @ApiModelProperty(value="订单人手机")
    private String recMobile;

    /**
     * 订单人地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value="订单人地址")
    private String address;

    /**
     * 订单人详细地址
     */
    @TableField(value = "address_details")
    @ApiModelProperty(value="订单人详细地址")
    private String addressDetails;

    /**
     * 是否删除(0=否，1=是)
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="是否删除(0=否，1=是)")
    private String isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private Date updateTime;
}
